
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        form{
            display: block;
            width: 400px;
            margin: auto;
        }
    </style>
</head>
<body>
<form method="get" action="${pageContext.request.contextPath}/T163Servlet">
<%--    隐藏域--%>
    <input type="hidden" name="op" value="add">
    <table border="4">
        <tr>
            <th>添加人员</th>
        </tr>
        <tr>
            <th>姓名</th>
            <th> <input type="text" name="name"> </th>
        </tr>
        <tr>
<%--            因为默认k-v 只要name -value--%>
            <th>性别</th>
            <th> <input type="radio" checked name="sex" value="1">男
                <input type="radio" name="sex" value="2">女</th>
        </tr>
        <tr>
            <th>部门</th>
            <th>
                <select name="dept">
                    <option value="总裁">总裁</option>
                    <option value="经理">经理</option>
                    <option value="前台">前台</option>
                </select>
            </th>
        </tr>
        <tr>
            <th><input type="submit" value="提交"></th>

        </tr>
    </table>

</form>

</body>
</html>
